package com.shensi.appCollect.service.impl;

import com.shensi.appCollect.dao.OrderPayTypeMapper;
import com.shensi.appCollect.pojo.OrderPayType;
import com.shensi.appCollect.service.OrderPayTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("orderPayTypeService")
@Slf4j
public class OrderPayTypeServiceImpl implements OrderPayTypeService {

    @Resource
    private OrderPayTypeMapper orderPayTypeMapper;

    @Override
    public List<OrderPayType> selectOrderPayType(Long stationId) {
        return orderPayTypeMapper.selectOrderPayType(stationId);
    }

    @Override
    public OrderPayType selectOrderPayTypeByPayType(String payType) {
        return orderPayTypeMapper.selectOrderPayTypeByPayType(payType);
    }
}
